﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchProgram.ascx.vb"
    Inherits="WebForm_ManageProgram_SearchProgram" %>
<%@ Register Namespace="My" TagPrefix="cc1" %>
<table>
    <tr>
        <td align="left">
            <asp:Label ID="lblProgramGroup" runat="server" meta:resourcekey="lblProgramGroup"></asp:Label>
            <asp:DropDownList ID="ddlProgramGroup" runat="server" AutoPostBack="false">
            </asp:DropDownList>
            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
        </td>
    </tr>
    <tr>
        <td>
        </td>
    </tr>
</table>
<br />
<My:MyGridView ID="gv" SkinID="pager" runat="server" HorizontalAlign="center" DataKeyNames="ProgramID"
    AllowHoverSelect="False" meta:resourcekey="gv" AllowSorting="true" MySortExpression="p.ProgramName">
    <Columns>
        <asp:BoundField DataField="ParentProgramName" meta:resourcekey="bfParentProgramName" />
        <asp:BoundField DataField="ProgramName" meta:resourcekey="bfProgramName" SortExpression="p.ProgramName" />
        <asp:BoundField DataField="Url" meta:resourcekey="bfUrl" SortExpression="p.Url" />
           <asp:BoundField DataField="Sequence" meta:resourcekey="bfSequence" SortExpression="p.Sequence" />
        <asp:TemplateField meta:resourcekey="bfVisible" >
            <itemtemplate>
<asp:DropDownList id="Visible" runat="server" __designer:wfdid="w67" SelectedValue='<%#Bind("Visible") %>' Enabled="False"><asp:ListItem Value="Y">是</asp:ListItem>
<asp:ListItem Value="N">否</asp:ListItem>
</asp:DropDownList> 
</itemtemplate>
        </asp:TemplateField>
        <asp:TemplateField >
            <itemtemplate>
<asp:LinkButton id="lknSave" meta:resourcekey="lknSave" runat="server" __designer:wfdid="w2" CommandName="Edit" CommandArgument='<%# Eval("ProgramID") %>'></asp:LinkButton> 
</itemtemplate>
        </asp:TemplateField>        </Columns>
</My:MyGridView>
